package com.mindcraft.shop.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mindcraft.shop.vo.MarketTopicVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("market_topic_sku")
public class MarketTopicSku {
    @TableField("id")
    private Integer id;
    @TableField("topic_id")
    private Integer topicId;

    @TableField("topic_id1")
    private Integer topicId1;

    @TableField("cover_image")
    private String coverImage;

    @TableField("img_id")
    private String imgId;

    @TableField("content")
    private String content;
    @TableField("user_id")
    private String userId;

    @TableField("popularity")
    private String popularity;

    @TableField("price")
    private BigDecimal price;

    @TableField("sort_name")
    private String sortName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;


    @Transient
    @TableField(exist = false)
    private String photoUrl;

    @Transient
    @TableField(exist = false)
    private String nickName;

    @Transient
    @TableField(exist = false)
    private List<String> imgUrlList;

    @Transient
    @TableField(exist = false)
    private List<MarketTopicVo> topicList;



//    //topic中
//    @Transient
//    @TableField(exist = false)
//    private String title;
//
//
//    @Transient
//    @TableField(exist = false)
//    private String popularity;
//
//
//    @Transient
//    @TableField(exist = false)
//    private List<MarketTopicSku> marketTopicSkuList;


}
